/*
    This file is part of open-wars <http://code.google.com/p/open-wars/>.

    open-wars is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    open-wars is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with open-wars.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef opengl_font_h
#define opengl_font_h

extern "C" {
#include <ft2build.h>
#include <freetype/freetype.h>
#include <freetype/ftglyph.h>
#include <freetype/ftoutln.h>
#include <freetype/fttrigon.h>
}

#include <common-datatypes.h>

#if IS_OSX
	#include <OpenGL/gl.h>
	#include <OpenGL/glu.h>
	#include <GLUT/glut.h>	
#elif WIN32
#include <gl\gl.h>
#include <gl\glu.h>
#else
	#include <GL/gl.h>
	#include <GL/freeglut.h>
#endif

#include <common-datatypes.h>

typedef struct {
    GLuint textures[128];
    GLuint displaylist;
    float h;
} _GLFont, *GLFont;

GLFont loadFont(STRING, int);
int printFont(GLFont font, STRING);
int deleteFont(GLFont);

#endif // opengl_font_h

